package com.fjec.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 003.字典表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@Data
@TableName("sys_dict")
public class SysDict implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 父Id
     */
    @TableField("ParentId")
    private Long parentId;

    /**
     * 字典类型编码 字典类型表的编码
     */
    @TableField("DictTypeCode")
    private String dictTypeCode;

    /**
     * 显示文本
     */
    @TableField("DisplayText")
    private String displayText;

    /**
     * 字典值
     */
    @TableField("DictValue")
    private String dictValue;

    /**
     * 是否叶子
     */
    @TableField("Leaf")
    private Integer leaf;

    /**
     * 排序
     */
    @TableField("Sort")
    private Integer sort;

    /**
     * 是否可用
     */
    @TableField("Valid")
    private Integer valid;

    /**
     * 创建时间
     */
    @TableField(value = "CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDictTypeCode() {
        return dictTypeCode;
    }

    public void setDictTypeCode(String dictTypeCode) {
        this.dictTypeCode = dictTypeCode;
    }

    public String getDisplayText() {
        return displayText;
    }

    public void setDisplayText(String displayText) {
        this.displayText = displayText;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    @Override
    public String toString() {
        return "SysDict{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", dictTypeCode=" + dictTypeCode +
                ", displayText=" + displayText +
                ", dictValue=" + dictValue +
                ", leaf=" + leaf +
                ", sort=" + sort +
                ", valid=" + valid +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
